from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By

driver = webdriver.Edge()
driver.get("https://www.jd.com/")
driver.maximize_window()
sleep(1)
# driver.find_element(By.TAG_NAME,'input').send_keys('小米')
# driver.find_element(By.ID,'key').send_keys("手机包")
# driver.find_element(By.CLASS_NAME,'text').send_keys("手机包")
# driver.find_element(By.XPATH,'//*[@id="key"]').send_keys("手机包1")
# driver.find_element(By.XPATH,'/html/body/div[1]/div[5]/div[1]/div[2]/div[2]/div[2]/input').send_keys("手机包2")
# driver.find_element(By.CSS_SELECTOR,'div.search-m div.form.include_jingyan.hotWords input#key.text').send_keys("手机包3")
# driver.find_element(By.CSS_SELECTOR,'.text').send_keys("手机包4")
# driver.find_element(By.CSS_SELECTOR,'#key').send_keys("手机包5")
# driver.find_element(By.XPATH,'//input[@id="key" and @class="text"]').send_keys("手机包6")
driver.find_element(By.XPATH,'//input[@id="key" or @class="text"]').send_keys("手机包7")




sleep(5)



